package com.java.huxb.day06.atomic;

/**
 * @author huxb
 * @date 2020/4/18 0018 上午 8:01
 */
public class AtomicDemo {
    public static void main(String[] args) {
        Integer ticketCount = 100;
        TickerThread tickerThread = new TickerThread(ticketCount);
        Thread t1 = new Thread(tickerThread, "窗口一");
        Thread t2 = new Thread(tickerThread, "窗口二");
        t1.start();
        t2.start();
    }
}


